/**
	*Advansed MaNGOS Statistic(AMS)
	*-------------------------------------------
	*Author: DeusModus
	*getmangos.ru
	*Version: 1.1
 */
 
function update(value){
var req=new JsHttpRequest();
req.onreadystatechange=function(){
if(req.readyState==4) document.getElementById("year").innerHTML=req.responseText;}
req.open(null,"template/menu/year.php",true);
req.send({realm:value});}

function update1(value){
var req=new JsHttpRequest();
req.onreadystatechange=function(){
if(req.readyState==4) document.getElementById("month").innerHTML=req.responseText;}
req.open(null,"template/menu/month.php",true);
req.send({year:value,realm:document.getElementById("selectedRealm").value});}

function update2(value){
var req=new JsHttpRequest();
req.onreadystatechange=function(){
if(req.readyState==4) document.getElementById("week").innerHTML=req.responseText;}
req.open(null,"template/menu/week.php",true);
req.send({month:value,year:document.getElementById("selectedYear").value,realm:document.getElementById("selectedRealm").value});}